package cn.ciis.basic.event;

import cn.ciis.server.CiisPacket;

public class OpenDebugEvent {

    private CiisPacket ciisPacket;//消息包

    private String bsId;//业务ID

    private boolean isDownload;//是否是接收数据

    public CiisPacket getCiisPacket() {
        return ciisPacket;
    }

    public void setCiisPacket(CiisPacket ciisPacket) {
        this.ciisPacket = ciisPacket;
    }

    /**
     * 创建一个事件触发包
     * @param ciisPacket Tio接收或发送的包
     * @param bsId 业务ID
     * @param isDownload 是否是下载。true表示硬件发送给服务器的包，false表示服务器发送给硬件的包
     */
    public OpenDebugEvent(CiisPacket ciisPacket,String bsId,boolean isDownload) {
        this.ciisPacket = ciisPacket;
        this.bsId = bsId;
        this.isDownload =isDownload;
    }

    public String getBsId() {
        return bsId;
    }

    public void setBsId(String bsId) {
        this.bsId = bsId;
    }

    public boolean isDownload() {
        return isDownload;
    }

    public void setDownload(boolean download) {
        isDownload = download;
    }
}
